using Cinch;
using System;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Controls;
using SLS.Base;
using SLS.ExClassLib.Events;
using SLS.ExClassLib.Loc;
namespace SLS.Presentation
{
	/// <summary>
      ////* 2012/10/20 23:02:34*/ 
	/// QueryDocument allow to edit, modify and run SQL queries
	/// </summary>
    [ViewnameToViewLookupKeyMetadata("VIPFOREIGNKEYLIST", typeof(VIPFOREIGNKEYLIST))]
	public partial class VIPFOREIGNKEYLIST : ExVIP
	{
 
        [Import("FOREIGNKEYLISTLocalizationModel", typeof(ILocalizationModel))]
        public override ILocalizationModel LocalizationModel
        {
            get { return base.LocalizationModel; }
            set { base.LocalizationModel = value; }
        }       
 
		/// <summary>
		/// Constructor
		/// </summary>
        public VIPFOREIGNKEYLIST()
		{ 
			InitializeComponent();            
            #region Not In DesignMode
            if (DesignerProperties.GetIsInDesignMode(this as DependencyObject))
            {
                return;
            }
            
            #endregion
            BaseTable = "FOREIGNKEYLIST";
            Address = Guid.NewGuid().ToString().ToUpper();              
            StartFedrate(); 
            LocalizationModel = new FOREIGNKEYLISTLocalizationModel();  
		}   
        public override void SLBC_Loaded(object sender, RoutedEventArgs e)
        {
            base.SLBC_Loaded(sender, e);
            try
            {
                if (NMICD != null)
                {
                    NMICD.CMDEXE.TextChanged += new TextChangedEventHandler(CMDEXE_TextChanged);
                } 
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }  
   } 
 } 
 
